package com.questionnaires.service;

import com.questionnaires.model.Response;
import com.questionnaires.repository.ResponseRepository;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

/**
 * @author ioana.ruca@gmail.com
 */
@Service
public class ResponseServiceImpl implements ResponseService {

    @Autowired
    ResponseRepository responseRepository;

    @Override
    public void saveOrUpdate(Response response) {

        responseRepository.saveOrUpdate(response);
    }
}
